import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 视频分类
 */
@Entity('video_category')
export class VideoCategoryEntity extends BaseEntity {
  @Column({ comment: '名称', length: 255 })
  name: string;

  @Column({ comment: '排序值', type: 'int', default: 0 })
  order: number;

  @Column({ comment: '状态', dict: ['启用', '禁用'], default: 0 })
  status: number;

  @Column({ comment: '父级ID', nullable: true })
  parentId: number;
}
